<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>个人中心_个人信息</title>
		<link rel="stylesheet" href="__PUBLIC__/home/css/chushihua.css" />
		<link rel="stylesheet" href="__PUBLIC__/home/css/gerenxinxi.css" />
	    <script src="__PUBLIC__/plugins/uploadify/jquery.min.js" type="text/javascript"></script>
		<script src="__PUBLIC__/home/js/gerenxinxi.js"></script>
		<script src="__PUBLIC__/home/js/jquery.min.js"></script>
		<script src="__PUBLIC__/home/js/jquery.miloc.ui.js"></script>
		
		<script src="__PUBLIC__/plugins/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/plugins/uploadify/uploadify.css">
		<style type="text/css">
           .swfupload{left:0px;}
		</style>
    	<script type="text/javascript">
		function del(delName,delId){			//点击删除链接，ajax
    	var info=$('#url').val();  //获取url
    	var d='#'+delName;
		var url=info+"/del";		//删除图片的路径
         $.post(url,{'name':delId},function(data){		//ajax后台
            $(d).html(data.info);						//输出后台返回信息
            $(d).hide(3000);							//自动隐藏
        },'json');										//josn格式

		}

		$(function() {
			$('#file_upload').uploadify({
				'formData'     : {

				},

				'fileTypeDesc' : 'Image Files',					//类型描述
				//'removeCompleted' : false,    //是否自动消失
        		'fileTypeExts' : '*.gif; *.jpg; *.png',		//允许类型
        		'fileSizeLimit' : '3MB',					//允许上传最大值
				'swf'      : $('#public').val()+'/plugins/uploadify/uploadify.swf',	//加载swf
				'uploader' : $('#url').val()+'/uploadify',					//上传路径
				'buttonText' :'文件上传',									//按钮的文字

				'onUploadSuccess' : function(file, data, response) {			//成功上传返回

            	alert(data);
            	//插入到image标签内，显示图片的缩略图
				//$('#image').append('<div id="'+n+'" class="photo" ><a href="'+data+'"  target="_blank"><input type="hidden" name="photo" value="'+data+'"/><img src="'+data+'"  height=80 width=80 /></a><div class="del"><a href="javascript:vo(0)" onclick=del("'+n+'","'+data+'");return false;>删除</a></div></div>');
				$('#image').append('<input type="hidden" name="photo" value="'+data+'"/>');
            	$('.tu .tu_img img').attr("src",data);
				}

			});
		});



	</script>
	</head>
	<body>
		<include file="Public:header_zc" />

<!--最大  div-->
<div class="content">
<!--个人中心   标题-->

<div class="gouwuchebt">
<div class="logo">
		<a href="{:U('Index/index?key=')}{$appkey}"><img src="{$think_path}{$shop_logo.img}" alt="" /></a>
</div>	
<div class="hyzc"><h1>个人中心</h1></div>

</div>
<!--个人中心   end-->

<form class="form-search" action="{:U('Product/index?key=')}{$appkey}" method="post" id="form2">
	<div class="geren_sousuo">
    			<input type="text" placeholder="商品名称" name="keywords"/>
    			<button  type="submit"  name="sub">确定</button>
    </div>
    </form>
<!--搜索商品  end-->

<!--我的订单-->
<div class="guanzhudianpu">
	<include file="Public:left" />

<!-- 右边-->
	<div class="dianpu_you">
		<h1 class="my">基本信息</h1>
		
		<form action="{:U('User/user_edit?key=')}{$appkey}" method="post" enctype="multipart/form-data" id="form1" name="form1">
		<div id="form">
		 <div id="one">
        <h3 class="one">账号：</h3>
        <input autocomplete="on" id="Y5" type="text" placeholder="6-18位，限字母和数字" value="{$user.name}" name="name" maxlength="18" readonly="readonly" disabled="disabled">
        <h4></h4>
     </div>
        <div id="one">
        <h3 class="one">用户名称：</h3>
        <input autocomplete="on" id="Y1" type="text" placeholder="2-18位，字母、数字、汉字" value="{$user.uname}" name="uname" maxlength="18">
        <h4></h4>
     </div>
       <div id="three">
        <h3 class="three">电 话：</h3>
        <input type="text" id="Y3" placeholder="11位手机号" value="{$user.tel}" name="tel">
        <h4></h4>
       </div>

       <div class="button">
       	<input class="a-1" id="a-1" type="submit" name="submit" value="保存提交">
       </div>
         </div>
    
<div class="tu">
	<p class="tu_img">
	<if condition="$user.photo eq '' ">
	<img src="__PUBLIC__/home/images/moren.png" alt="" style="border: solid 1px #dfdfdf;"/>
<else /> 
<img src="{$user.photo}" alt="" />
</if>
</p>
	<h2>仅支持JPG、JIF、PNG、JPEG、BMP</h2>
	
	<input id="file_upload" name="file_upload" type="file"  >
		<div id="image" class="image"></div>
		<input type="hidden" id="url" value="__URL__">
		<input type="hidden" id="root" value="__ROOT__">
		<input type="hidden" id="public" value="__PUBLIC__">
</div>

  </form>      
        
    </div>		
</div>
<!--我的订单   end-->
<include file="Public:footer" />
<!--结尾-->
 

</div>
	</body>
</html>
